#include "borrowcard.h"
#include "ui_borrowcard.h"
#include "database.h"

borrowcard::borrowcard(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::borrowcard)
{
    ui->setupUi(this);
}

borrowcard::~borrowcard()
{
    delete ui;
}



void borrowcard::on_register_2_clicked()
{
    DataBase data;
    QString pwd=ui->passwordEdit->text();
    QString user=ui->nameEdit->text();
    QString cardid=ui->idEdit->text();
    QString phone=ui->phoneEdit->text();
    data.cardHandle(user,cardid,pwd,phone);
}

